<!DOCTYPE html>
<?php
    session_start();
    if(isset($_SESSION['admin'])){
        require_once("viewmenu.php");
?>
<html lang="pt-br">
    <head>
	<meta charset="utf-8">
	<link rel="stylesheet" type="text/css" href="css/estilo-default.css" />
	<link rel="stylesheet" type="text/css" href="css/tabelapagamento.css" />        
        <link rel="stylesheet" type="text/css" href="css/jquery-ui.css"/>
        <script type="text/javascript" src="js/jquery.js"></script>
        <script type="text/javascript" src="js/jquery-ui.js"></script>
        <script type='text/javascript' src='js/jquery.form.js'></script>
        <script type="text/javascript" src="js/jquery.maskMoney.js"></script>        
        <script type="text/javascript" src="js/cliente.pagamento.js"></script>
        <script type="text/javascript" src="js/jquery.validate.js"></script>    
        <script type="text/javascript" src="js/util.validate.js"></script>
    </head>
    <body>
        <div id='centro'>
            <p>Pagamento</p>
            <fieldset>
            <form name='pagar' id="pagar"  method='post' action='../control/ControlePagamento.php'>

                <table>
                   <thead>
                   <tr>
                        <th id='td1'>CPF</th>
                        <th id='td2'>Nome</th>
                        <th id='td3'>Saldo</th>
                        <th id='td4'>Pgto</th>                        
                   </tr>
                   </thead>
                    <tbody>                    
                    <tr>
                        <td><input type="text" name="cpf" id="cpf" class='input-text' maxlength="11" autofocus></td>
                        <td><input type="text" name="nome" id="nome" class='nome' readonly/></td>
                        <td><input type="text" name="saldo" id="saldo" class='input-text' readonly></td>
                        <td><input type="text" name="valor" id="valor" class='input-text'></td>                        
                    </tr>
                    </tbody>
                </table> 
                <input type='submit' name='pagar' value='Pagar'/>
                <button type="button" id="voltar" name='voltar' value='voltar'>Voltar</button>
           </form>
           </fieldset>     
        </div>
    </body>
</html>
<?php
    }else{
        header("Location: index.php");
    }
?>